package com.sgr.services.impl;

import java.util.List;

import com.sgr.dao.ClienteDao;
import com.sgr.model.Cliente;
import com.sgr.model.Reserva;
import com.sgr.services.ClienteService;

public class ClienteServiceImpl implements ClienteService{
	
	private ClienteDao clienteDao;
	
	public ClienteDao getClienteDao(){
		return clienteDao;
	}
	public void setClienteDao(ClienteDao clienteDao){
		this.clienteDao = clienteDao;
	}
	
	@Override
	public void save(String nome) {
	 Cliente cli = new Cliente();
	 clienteDao.save(cli);
		
	}
	@Override
	public void update(Cliente cli) {
		clienteDao.update(cli);
	}

	
	 @Override
	 public void delete(Cliente cli) {
		 clienteDao.delete(cli);
	}
	
	@Override
	public List findByName(String name) {
		return clienteDao.findByName(name);
	}

	@Override
	public Long count() {
		return clienteDao.count();
	}

	@Override
	public List findAll() {
		return clienteDao.findAll();
	}

	@Override
	public Cliente findByPk(int id) {
		return clienteDao.findByPk(id);
	}
}
